package com.itwn.mapper;

import com.itwn.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    User selectByPrimaryKey(String userName);

    List<User> selectAll();

    int updateByPrimaryKey(User record);

    List<User> selectAllByCons(String userName);

    void deleteUserByUpdate(Integer userId);
}